package utils;

import org.thehecklers.monologfx.MonologFX;
import org.thehecklers.monologfx.MonologFXBuilder;
import org.thehecklers.monologfx.MonologFXButton;
import org.thehecklers.monologfx.MonologFXButtonBuilder;

/**
 * Created by lincl on 2018/12/6.
 */
public class MonologUtils {
    public static MonologFX mono = null;

    public static void alert(String text){
        MonologFXButton mlb = MonologFXButtonBuilder.create()
                .defaultButton(true)
                .type(MonologFXButton.Type.OK)
                .build();

        MonologFX mono = MonologFXBuilder.create()
                .modal(true)
                .message(text)
                .titleText("提示")
                .button(mlb)
                .buttonAlignment(MonologFX.ButtonAlignment.CENTER)
                .build();

        mono.show();
    }
}
